#ifndef __Rtc_H
#define __Rtc_H	 

#include "Sys.h" 
#include "stm32h7xx_hal.h"

class Rtc
{
// Construction
public:
	Rtc();
		
// Properties
public:
	//m_fTimeCalib;

// Methods
public:
	u8 getStr(u8* format, u8* result, u16 len);
	u32 getMdhm();
	void calibration( s16 nCalib );

	HAL_StatusTypeDef init();

	HAL_StatusTypeDef setTime( RTC_TimeTypeDef *sTime );
	HAL_StatusTypeDef getTime( RTC_TimeTypeDef *sTime );
	HAL_StatusTypeDef setDate( RTC_DateTypeDef *sDate );
	HAL_StatusTypeDef getDate( RTC_DateTypeDef *sDate );

// Overwrite
public:
};
#endif
